package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.LogBook;
import com.bonuo.saas.mapper.LogBookMapper;
import com.bonuo.saas.service.LogBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogBookServiceImpl implements LogBookService {

    @Autowired
    private LogBookMapper logBookMapper;

    @Override
    public List<LogBook> selectLogBookList(LogBook logBook) {
        return logBookMapper.selectLogBookList(logBook);
    }

    @Override
    public Integer insertLogBook(LogBook logBook) {
        return logBookMapper.insertLogBook(logBook);
    }

    @Override
    public Integer updateLogBook(LogBook logBook) {
        return logBookMapper.updateLogBook(logBook);
    }

    @Override
    public Integer deleteLogBookById(Integer id) {
        return logBookMapper.deleteLogBookById(id);
    }
}
